package com.wang.example.netty.codec.other;

import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;


public class TestServerInHandler extends SimpleChannelInboundHandler<String> {
    /**
     * 服务端读取到网络数据后的处理
     * @param ctx
     * @param msg
     * @throws Exception
     */
    @Override
    public void channelRead0(ChannelHandlerContext ctx, String msg)
            throws Exception {

        System.out.println(msg);
    }
}
